package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.vo.MerchantRegisterVo;
import com.yh.merchant.dto.MerchantDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: HWW
 * @Date: 2021/8/1915:01
 * @Desc:
 */
@Mapper
public interface MerchantRegisterConvert {

    MerchantRegisterConvert INSTANCE = Mappers.getMapper(MerchantRegisterConvert.class);

    MerchantDTO vo2dto(MerchantRegisterVo merchantRegisterVo);

    MerchantRegisterVo dto2vo(MerchantDTO merchantDTO);

    List<MerchantDTO> voList2dtoList(List<MerchantRegisterVo> list);

    List<MerchantRegisterVo> dtoList2voList(List<MerchantDTO> list);



    // public static void main(String[] args) {
    //     MerchantRegisterVo merchantRegisterVo = new MerchantRegisterVo();
    //
    //     merchantRegisterVo.setMobile("123456");
    //     merchantRegisterVo.setUsername("hh");
    //     MerchantDTO merchantDTO = MerchantRegisterConvert.INSTANCE.vo2dto(merchantRegisterVo);
    //     merchantDTO.setUsername("hh");
    //
    //     MerchantRegisterConvert.INSTANCE.dto2vo(merchantDTO);
    //
    //
    // }

}
